package com.huangguolin.cloud.share.repository;

import com.huangguolin.cloud.mybatis.entity.PtShareEntity;
import com.huangguolin.cloud.mybatis.flexigrid.PagingEntity;
import com.huangguolin.cloud.role.entity.SearchRoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ShareDao {
    /**
     * 分页查询
     * @param search
     * @param paging
     * @return
     */
    List<PtShareEntity> queryShareListByPage(@Param("search")SearchRoleEntity search,@Param("paging") PagingEntity paging);

    /**
     * 角色总数量
     * @param search
     * @return
     */
    Integer queryShareTotal(@Param("search")SearchRoleEntity search);

    /**
     * 文件删除
     * @param fileUuid
     */
    void deleteFile(String fileUuid);
}
